package com.st.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_order")
public class Order implements Serializable {
    /**
     * id唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单数量
     */
    @TableField(value = "order_number")
    private Integer orderNumber;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 应付价格
     */
    @TableField(value = "payable_amount")
    private String payableAmount;

    /**
     * 实付价格
     */
    @TableField(value = "paid_in_amount")
    private String paidInAmount;

    /**
     * 优惠券折扣
     */
    @TableField(value = "total_discount")
    private String totalDiscount;

    /**
     * 配送时间
     */
    @TableField(value = "delivery_date")
    private Date deliveryDate;

    /**
     * 配送周期
     */
    @TableField(value = "delivery_period")
    private String deliveryPeriod;

    /**
     * 配送费
     */
    @TableField(value = "delivery_fee")
    private String deliveryFee;

    /**
     * 订单备注
     */
    @TableField(value = "greeting_card_message")
    private String greetingCardMessage;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否匿名
     */
    @TableField(value = "anonymity_flag")
    private String anonymityFlag;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private String status;

    /**
     * 删除标记:0为未删除,1为删除
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    /**
     * 新建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_NUMBER = "order_number";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_PAYABLE_AMOUNT = "payable_amount";

    public static final String COL_PAID_IN_AMOUNT = "paid_in_amount";

    public static final String COL_TOTAL_DISCOUNT = "total_discount";

    public static final String COL_DELIVERY_DATE = "delivery_date";

    public static final String COL_DELIVERY_PERIOD = "delivery_period";

    public static final String COL_DELIVERY_FEE = "delivery_fee";

    public static final String COL_GREETING_CARD_MESSAGE = "greeting_card_message";

    public static final String COL_REMARK = "remark";

    public static final String COL_ANONYMITY_FLAG = "anonymity_flag";

    public static final String COL_STATUS = "status";

    public static final String COL_DEL_FLAG = "del_flag";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}